package com.bjpowernode.crm.workbench.service.serviceimpl;

import com.bjpowernode.crm.workbench.dao.CustomerDao;
import com.bjpowernode.crm.workbench.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {
    @Autowired
    private CustomerDao customerDao;

    @Override
    @Transactional
    public List<String> getCustomerNameList(String name) {
        List<String> customerNameList=customerDao.getCustomerNameList(name);
        System.out.println("customerList=========="+customerNameList.size());
        return customerNameList;
    }
}
